/* (c) 2008,2009 Jonathan Hogg and Andreas Grothey, University of Edinburgh
 *
 * This file is part of SML.
 *
 * SML is free software: you can redistribute it and/or modify it under the
 * terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation, using version 3 of the License.
 *
 * SML is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */

#include "SetElement.h"
#include "IDNode.h"
#include <string>
#include <cassert>
#include <vector>

using namespace std;


SetElement::SetElement(string value)
{
	this->valueList.push_back(value);
}
SetElement::SetElement(vector<string> list)
{
	for(vector<string>::iterator i=list.begin();i!=list.end();i++)
	{
		this->valueList.push_back((*i));
	}
}


SetElement::~SetElement()
{

}

string SetElement::toString()
{
	ostringstream oss;
	oss<<"(";
	for(vector<string>::iterator i=valueList.begin();i!=valueList.end();i++)
	{
		oss<<(*i);
		if(i!=valueList.end()-1){
			oss<<",";
		}
	}
	oss<<")";
	return oss.str();
}
